/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

/* 朋友圈容器 */
.moments-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

/* 头部 */
.moments-header {
    position: sticky;
    top: 0;
    background-color: #f7f7f7;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    z-index: 100;
}

.moments-header h1 {
    font-size: 20px;
    font-weight: 500;
}

.post-btn {
    background: none;
    border: none;
    color: #07C160;
    font-size: 16px;
    cursor: pointer;
}

/* 动态列表 */
.moments-list {
    padding: 10px 15px;
}

.moment-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.user-name {
    font-weight: 500;
    font-size: 16px;
}

.moment-content {
    margin-left: 50px;
    margin-bottom: 10px;
}

.moment-text {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.moment-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.moment-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.moment-time {
    font-size: 12px;
    color: #999;
    margin-left: 50px;
    margin-bottom: 5px;
}

.moment-actions {
    display: flex;
    margin-left: 50px;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: #576b95;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.action-btn i {
    margin-right: 3px;
    font-size: 16px;
}

/* 点赞和评论区域 */
.moment-interaction {
    margin-left: 50px;
    margin-top: 5px;
    background-color: #f7f7f7;
    border-radius: 4px;
    padding: 8px;
}

.like-list {
    font-size: 14px;
    color: #576b95;
    margin-bottom: 5px;
}

.comment-list {
    font-size: 14px;
}

.comment-item {
    margin-bottom: 5px;
    line-height: 1.4;
}

.comment-user {
    color: #576b95;
    font-weight: 500;
}

/* 评论输入框 */
.comment-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 10px;
    display: flex;
    border-top: 1px solid #e5e5e5;
    display: none;
}

.comment-input-container input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    outline: none;
}

.comment-input-container button {
    margin-left: 10px;
    padding: 8px 15px;
    background-color: #07C160;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 单张图片的特殊样式 */
.single-image {
    max-width: 70%;
    max-height: 300px;
    aspect-ratio: auto;
}